<?php

declare(strict_types=1);

namespace app\common\model\im;

use think\Model;

use app\common\traits\ModelTrait;

/**
 * 消息通知(系统全站) - 模型
 * @author kaige
 * @update  2023-03-23
 * @copyright ©2022 泉州市盛筑信息科技有限公司 版权所有
 */
class ImMessage extends Model
{


  //开启自动写入时间戳字段
  protected $autoWriteTimestamp = true;
  protected $createTime = 'create_time';
  protected $updateTime = null;

  // 设置字段信息(避免多一次查询的开销)
  protected $schema = [
    'id' => 'int',
    'type' => 'varchar',
    'chat_type' => 'int',
    'm_url' => 'varchar',
    'modu_name' => 'varchar',
    'm_table' => 'varchar',
    'm_id' => 'int',
    'brief' => 'varchar',
    'content' => 'text',
    'send_id' => 'int',
    'send_id_name' => 'varchar',
    'rece_id' => 'int',
    'rece_id_name' => 'varchar',
    'status' => 'int',
    'is_send' => 'int',
    'last_send_time' => 'int',
    'read_time' => 'int',
    'create_time' => 'int'
  ];


  use ModelTrait;
}
